package main

import (
	"fmt"
	"reflect"
)

type peopleInterface interface {
	SayHello() *comment
}

type myPerson interface {
	peopleInterface
	Sleep() string
	Study() string
}

type people struct {
	name string
}

func (p people)SayHello() *comment {
	comment := comment{}
	return &comment
}
func (p people)Sleep() string {
	return "sleep"
}
func (p people)Study() string {
	return "study"
}


type comment struct {
	words string
	format string
}

var people1 = people{"wyang"}
var pp myPerson

func main() {
	pp = people1
	fmt.Println(reflect.TypeOf(pp))
	fmt.Println(reflect.TypeOf(&people{}))
	fmt.Println(reflect.TypeOf(pp.SayHello()))
}